# Load the altera_mf_ver library for altsyncram design
vsim -L altera_mf_ver work.top_level
# Add waves to waveform
add wave  \
sim:/top_level/MClock \
sim:/top_level/PClock \
sim:/top_level/Resetn \
sim:/top_level/Run \
sim:/top_level/Bus \
sim:/top_level/Done \
sim:/top_level/Data \
sim:/top_level/Addr \
sim:/top_level/processor/R0 \
sim:/top_level/processor/R1 \
sim:/top_level/processor/R2 \
sim:/top_level/processor/R3 \
sim:/top_level/processor/R4 \
sim:/top_level/processor/R5 \
sim:/top_level/processor/R6 \
sim:/top_level/processor/R7 \
sim:/top_level/processor/Tstep_D \
sim:/top_level/processor/Tstep_Q \
sim:/top_level/processor/IR \
sim:/top_level/processor/Rin \
sim:/top_level/processor/DIN


force -freeze sim:/top_level/MClock 1 50, 0 {250 ps} -r 400
force -freeze sim:/top_level/PClock 1 0, 0 {50 ps} -r 100

force -freeze sim:/top_level/Resetn 0 0
force -freeze sim:/top_level/Run 0 0
run 50 ps
force -freeze sim:/top_level/Resetn 1 0
run 700 ps
force -freeze sim:/top_level/Run 1 0
run 100 ps
force -freeze sim:/top_level/Run 0 0
run 500 ps
force -freeze sim:/top_level/Run 1 0
run 100 ps
force -freeze sim:/top_level/Run 0 0
run 200 ps
force -freeze sim:/top_level/Run 1 0
run 100 ps
force -freeze sim:/top_level/Run 0 0
run 300 ps
force -freeze sim:/top_level/Run 1 0
run 100 ps
force -freeze sim:/top_level/Run 0 0
run 500 ps
